package com.ljkj.blockpay.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.bumptech.glide.Glide;
import com.kongzue.baseokhttp.util.JsonMap;
import com.ljkj.blockpay.R;
import com.ljkj.blockpay.basedata.BaseActivity;
import com.ljkj.blockpay.databinding.ActivityChangePasswordBinding;
import com.ljkj.blockpay.databinding.ActivityResetPwdBinding;
import com.ljkj.blockpay.presenter.PasswordPresenter;
import com.ljkj.blockpay.presenter.inter.PasswordInter;
import com.ljkj.blockpay.widget.ClickListener;

/**
 * 重置密码界面
 */
public class ResetPwdActivity extends BaseActivity<ActivityResetPwdBinding, PasswordPresenter> implements PasswordInter.PasswordInterView, ClickListener {
    private String oldphone;
    private String oldemail;
    private String verifycode;
    private String newpwd;
    private String confirmpwd;

    @Override
    public int initContentView() {
        return R.layout.activity_reset_pwd;
    }

    @Override
    protected PasswordPresenter createPresenter() {
        return null;
    }

    @Override
    protected void init(Bundle savedInstanceState) {

        binding.tvTitle.setLeftBackFinish(this);
    }

    @Override
    protected void initData() {
        super.initData();
        oldphone = binding.etOldphone.getText().toString();
        oldemail = binding.etOldemail.getText().toString();
        verifycode = binding.etVerificationcode.getText().toString();
        newpwd = binding.etInputnewpwd.getText().toString();
        confirmpwd = binding.etConfirmlogin.getText().toString();
    }

    @Override
    public void onClick(View view) {

        switch (view.getId()){
            case R.id.tv_sendcode:

                break;

            case R.id.tv_change:


                break;
            case R.id.btn_bindchange:



                break;
            default:
                break;
        }
    }

    @Override
    public void changeSuccess(JsonMap jsonMap) {

    }

    @Override
    public void resetSuccess(JsonMap jsonMap) {

    }

}